package com.JumpAndJump.dao;

import com.JumpAndJump.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uerid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uerid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int checkUsername(String username);

    User selectLogin(@Param("username")String username, @Param("password")String password);

    int updateScoreByID(@Param("ID")int  ID,@Param("score")int score);

    List getscoreList();

    int register(@Param("username")String username,@Param("password")String password);
}